package com.central.scheduler.dao.mapper;

import com.central.db.mapper.SuperMapper;
import com.central.scheduler.dao.model.ProWorker;
import com.central.scheduler.dao.model.ProcessLineage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

/**
 * @author Tindy
 * @date 2021/7/5
 * @describe
 */
@Mapper
public interface ProcessLineageMapper extends SuperMapper<ProcessLineage> {
    void batchInsert(@Param("processLineages") List<ProcessLineage> processLineages);

    List<ProcessLineage> getLineages(@Param("processCodes") Set<Long> processCodes);
}